JavaImport for Android 1.8 XE5 XE6
Converts Java .class files and folders to Delphi XE5 - XE6 units for Android. To convert .jar file, rename it to .zip file, unzip it in some folder and then apply javaimport to this folder. Imported Android Toast API example:
JToastClass=interface(JObjectClass)['{DAE4EC72-C59E-4BFE-A623-9905932C39B1}']{Property methods}function_GetLENGTH_LONG:Integer;function_GetLENGTH_SHORT:Integer;{Methods}functioninit(context:JContext):JToast;cdecl;functionmakeText(context:JContext;text:JCharSequence;duration:Integer):JToast;cdecl;overload;functionmakeText(context:JContext;resId:Integer;duration:Integer):JToast;cdecl;overload;{Properties}propertyLENGTH_LONG:Integerread_GetLENGTH_LONG;propertyLENGTH_SHORT:Integerread_GetLENGTH_SHORT;end;[JavaSignature('android/widget/Toast')]JToast=interface(JObject)['{37D4A9A0-1DD6-413A-8548-82A45DA94840}']{Methods}procedurecancel;cdecl;functiongetDuration:Integer;cdecl;functiongetGravity:Integer;cdecl;functiongetHorizontalMargin:Single;cdecl;functiongetVerticalMargin:Single;cdecl;functiongetView:JView;cdecl;functiongetXOffset:Integer;cdecl;functiongetYOffset:Integer;cdecl;proceduresetDuration(duration:Integer);cdecl;proceduresetGravity(gravity:Integer;xOffset:Integer;yOffset:Integer);cdecl;proceduresetMargin(horizontalMargin:Single;verticalMargin:Single);cdecl;proceduresetText(resId:Integer);cdecl;overload;proceduresetText(s:JCharSequence);cdecl;overload;proceduresetView(view:JView);cdecl;procedureshow;cdecl;end;TJToast=class(TJavaGenericImport<JToastClass,JToast>)end;constTJToast_LENGTH_LONG=1;TJToast_LENGTH_SHORT=0;